﻿/// <reference path="jquery-1.7.1-vsdoc.js" />

$(document).ready(function () {

    changePicture();

});

function changePicture() {
    $("ul").children().each(function () {
        var s = this.style;
        //var parent=$(this).parent();
        s.position = 'absolute';
        s.zIndex = Math.floor(Math.random() * 90) + 10; //层级 基本随机数
        s.width = s.height = s.zIndex + 'px'; //宽高

        s.left = Math.floor(Math.random() * screen.width) + 'px';
        s.top = Math.floor(Math.random() * screen.height) + 'px';

        s.opacity = s.zIndex / 100; //透明度
        s.filter = 'alpha(opacity=' + s.zIndex + ')';
        s.alpha = s.zIndex;
    });
    setTimeout(changePicture, 500);
}
